package com.soladhoc.annonces.server.service;

import java.util.List;

import com.google.appengine.api.datastore.EntityNotFoundException;
import com.soladhoc.annonces.server.domain.Annonce;

public class AnnonceDao extends ObjectifyDao<Annonce> {
	
	public Annonce save(Annonce annonce){
		this.put(annonce);
		return annonce;
	}
	
	public Annonce fetch(Long id) throws EntityNotFoundException{
		return this.get(id);
	}
	
	public List<Annonce> fetchRange(int start, int length){
		return this.listAll(start, length);
	}

}
